go/types.error_.addf (method)

47 uses

	go/types (current package)
		assignments.go#L378: 	err.addf(at, "%s return values", qualifier)
		assignments.go#L379: 	err.addf(noposn, "have %s", check.typesSummary(operandTypes(rhs), false, false))
		assignments.go#L380: 	err.addf(noposn, "want %s", check.typesSummary(varTypes(lhs), false, false))
		call.go#L535: 		err.addf(at, "%s arguments in call to %s", qualifier, call.Fun)
		call.go#L536: 		err.addf(noposn, "have %s", check.typesSummary(operandTypes(args), false, ddd))
		call.go#L537: 		err.addf(noposn, "want %s", check.typesSummary(varTypes(params), sig.variadic, false))
		decl.go#L25: 			err.addf(obj, "%s redeclared in this block", obj.Name())
		decl.go#L333: 		err.addf(obj, "invalid recursive type %s", name(obj))
		decl.go#L335: 		err.addf(obj, "invalid cycle in declaration of %s", name(obj))
		decl.go#L340: 		err.addf(obj, "%s refers to %s", name(obj), name(next))
		decl.go#L825: 					err.addf(alt, "field and method with the same name %s", fld.name)
		errors.go#L60: func (err *error_) addf(at positioner, format string, args ...interface{}) {
		errors.go#L70: 		err.addf(obj, "other declaration of %s", obj.Name())
		errors.go#L236: 	err.addf(at, "%s", msg)
		errors.go#L242: 	err.addf(at, format, args...)
		errors.go#L248: 	err.addf(at, format, args...)
		errors.go#L256: 	err.addf(at, "%s requires %s or later", msg, v)
		infer.go#L134: 				err.addf(arg, "type %s of %s does not match %s (cannot infer %s)", targ, arg.expr, tpar, typeParamsString(tparams))
		infer.go#L147: 				err.addf(arg, "inferred type %s for %s does not match type %s of %s", inferred, tpar, targ, arg.expr)
		infer.go#L149: 				err.addf(arg, "type %s of %s does not match inferred type %s for %s", targ, arg.expr, inferred, tpar)
		infer.go#L152: 			err.addf(arg, "type %s of %s does not match %s", targ, arg.expr, tpar)
		infer.go#L266: 						err.addf(posn, "%s (type %s) does not satisfy %s", tpar, tx, tpar.Constraint())
		infer.go#L307: 					err.addf(posn, "%s (type %s) does not satisfy %s %s", tpar, tx, tpar.Constraint(), cause)
		infer.go#L347: 					err.addf(arg, "mismatched types %s and %s (cannot infer %s)", max, arg.typ, tpar)
		infer.go#L456: 			err.addf(posn, "cannot infer %s (declared at %v)", obj.name, obj.pos)
		initorder.go#L178: 	err.addf(obj, "initialization cycle for %s", obj.Name())
		initorder.go#L182: 		err.addf(obj, "%s refers to %s", obj.Name(), next.Name())
		labels.go#L137: 					err.addf(lbl, "label %s already declared", name)
		mono.go#L146: 	err.addf(obj0, "instantiation cycle:")
		mono.go#L157: 			err.addf(atPos(edge.pos), "%s implicitly parameterized by %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
		mono.go#L159: 			err.addf(atPos(edge.pos), "%s instantiated as %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
		resolver.go#L338: 								err.addf(d.spec.Name, "%s redeclared in this block", alt.Name())
		resolver.go#L472: 					err.addf(alt, "%s already declared through import of %s", alt.Name(), pkg.Imported())
		resolver.go#L475: 					err.addf(alt, "%s already declared through dot-import of %s", alt.Name(), obj.Pkg())
		stmt.go#L263: 					err.addf(&v, "duplicate case %s in expression switch", &v)
		stmt.go#L264: 					err.addf(atPos(vt.pos), "previous case")
		stmt.go#L330: 				err.addf(e, "duplicate case %s in type switch", Ts)
		stmt.go#L331: 				err.addf(other, "previous case")
		stmt.go#L384: 			err.addf(e, "duplicate case %s in type switch", Ts)
		stmt.go#L385: 			err.addf(other, "previous case")
		stmt.go#L564: 					err.addf(s, "result parameter %s not in scope at return", obj.name)
		stmt.go#L565: 					err.addf(alt, "inner declaration of %s", obj)
		struct.go#L203: 		err.addf(atPos(pos), "%s redeclared", obj.Name())
		typeset.go#L231: 				err.addf(atPos(pos), "duplicate method %s", m.name)
		typeset.go#L232: 				err.addf(atPos(mpos[other.(*Func)]), "other declaration of method %s", m.name)
		typeset.go#L245: 						err.addf(atPos(pos), "duplicate method %s", m.name)
		typeset.go#L246: 						err.addf(atPos(mpos[other.(*Func)]), "other declaration of method %s", m.name)